package net.wanho.zaixian.cms.service;

import net.wanho.zaixian.pojo.cms.CmsPage;
import org.springframework.data.domain.Page;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Optional;

public interface CmsPageService {

    Page listPage(int page, int size, @RequestParam(required = false, name = "siteId") String siteId);

    void addPage(CmsPage cmsPage);

    Optional<CmsPage> getPage(String pageId);

    void editPage(String pageId, CmsPage cmsPage);

    void delPage(String pageId);




}
